<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>模仿京东“逛好店”效果</title>
    <style>
        /* 全局样式重置与基础设置 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Microsoft Yahei", sans-serif;
        }
        /* 整体模块容器 */
        .shop-section {
            width: 400px;
            margin: 20px auto;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            padding: 15px;
            border-radius: 6px;
        }
        /* 标题栏（含交互箭头） */
        .section-header {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }
        .section-header h2 {
            font-size: 24px;
            margin-right: 10px;
        }
        /* 箭头链接的交互样式 */
        .section-header .arrow-link {
            display: inline-block;
            width: 24px;
            height: 24px;
            background-image: url("arrow-default.png"); /* 引入默认空心红箭头图片 */
            background-size: cover;
        }
        .section-header .arrow-link:hover {
            background-image: url("arrow-hoverg.pn"); /*  hover时切换为红底白箭头图片 */
        }
        /* 店铺卡片通用样式 */
        .shop-card {
            display: flex;
            margin-bottom: 10px;
            padding: 10px;
            border-radius: 4px;
        }
        /* 交替背景色 */
        .shop-card:nth-child(odd) {
            background-color: #f9f2f4;
        }
        .shop-card:nth-child(even) {
            background-color: #e8f4f8;
        }
        /* 店铺信息区域 */
        .shop-info {
            flex: 1;
            padding-right: 10px;
        }
        .shop-info h3 {
            font-size: 16px;
            margin-bottom: 10px;
        }
        /* 自营标签样式 */
        .self-operated {
            display: inline-block;
            border: 1px solid #e1251b;
            color: #e1251b;
            font-size: 12px;
            padding: 2px 6px;
            border-radius: 3px;
            margin-bottom: 10px;
        }
        /* 关注人数样式 */
        .follow-count {
            font-size: 14px;
            color: #999;
        }
        /* 商品图片区域 */
        .shop-img img {
            width: 120px;
            height: 120px;
            display: block;
        }
    </style>
</head>
<body>
    <div class="shop-section">
        <!-- 标题栏 -->
        <div class="section-header">
            <h2>逛好店</h2>
            <a href="#" class="arrow-link"></a>
        </div>
        <!-- 店铺卡片1 -->
        <div class="shop-card">
            <div class="shop-info">
                <h3>贝恩施京东自营官方旗舰店</h3>
                <span class="self-operated">自营</span>
                <p class="follow-count">277.9万人关注</p>
            </div>
            <div class="shop-img">
                <img src="D:\zm\xx\wab页面\third-year-student-on-wab\1.jpg" alt="贝恩施商品">
            </div>
        </div>
        <!-- 店铺卡片2 -->
        <div class="shop-card">
            <div class="shop-info">
                <h3>美宝莲京东自营官方旗舰店</h3>
                <span class="self-operated">自营</span>
                <p class="follow-count">192.9万人关注</p>
            </div>
            <div class="shop-img">
                <img src="D:\zm\xx\wab页面\third-year-student-on-wab\2.jpg" alt="美宝莲商品">
            </div>
        </div>
    </div>
</body>
</html>